package com.wuliupai.delivery.wuliupaidelivery.impl;

import com.baidu.mapapi.map.BitmapDescriptor;
import com.baidu.mapapi.map.BitmapDescriptorFactory;
import com.baidu.mapapi.model.LatLng;
import com.wuliupai.delivery.wuliupaidelivery.R;
import com.wuliupai.delivery.wuliupaidelivery.clusterutil.clustering.ClusterItem;


/**
 * Descriptions：
 * <p>
 * Author：ChenME
 * Date：2017/5/12
 * Email：ibelieve1210@163.com
 */
public class MyItem implements ClusterItem {
    private final LatLng mPosition;

    public MyItem(LatLng latLng) {
        mPosition = latLng;
    }

    @Override
    public LatLng getPosition() {
        return mPosition;
    }

    @Override
    public BitmapDescriptor getBitmapDescriptor() {
        return BitmapDescriptorFactory
                .fromResource(R.mipmap.icon_gcoding);
    }
}